<%= render :partial => "search_form" %>
<div class="newContent">
  <div class="personalContainer">
    <% if @bookmarked.length > 0 %>
      <div class="column leftBlock">
        <h3><span>Bookmarked:</span></h3>
        <ul>
          <% @bookmarked.each do |i| %>
            <li id="bookm-<%= i.id %>">
              <%= link_to_remote(image_tag('transparent.gif'), :update => "bookm-#{i.id}", :url => {:controller => 'search', :action => 'un_bookmark', :id => i.id}, :html => {:class => 'delete'}) %>
              <%= link_to_remote(i.title, :update => 'previewContainer', :url => {:controller => 'search', :action => 'preview_item', :id => i.id}, :after => 'togglePreview()') %>
            </li>
          <% end %>
        </ul>
      </div>
    <% end %>
    <% if @history.length > 0 %>
      <div class="column rightBlock">
        <h3><span>History:</span></h3>
        <ul>
          <% @history.each do |q| %>
            <li id="hist-<%= q.id %>">
              <%= link_to_remote(image_tag('transparent.gif'), :update => "hist-#{q.id}", :url => {:controller => 'search', :action => 'delete_history', :id => q.id}, :html => {:class => 'delete'}) %>
              <%= link_to(isolate_tokens(q.query), 'javascript:void(0);', :onclick => "$('q').value = '#{q.query}'; $('searchbox').onsubmit(); $('searchbox').submit();") %>
            </li>
          <% end %>
        </ul>
      </div>
    <% end %>
    <div class="break"></div>
  </div>
</div>